package com.hulman.oms.dao;

import com.hulman.oms.bean.OnlyOffice;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: maxwellens
 */
@Mapper
public interface OnlyOfficeDao
{
    List<OnlyOffice> findOnlyOffices(Map<String, Object> map);

    Integer findOnlyOfficesCount(Map<String, Object> map);

    OnlyOffice findOnlyOfficeById(Integer id);

    OnlyOffice findOnlyOfficeByFileId(String fileId);

    int insertOnlyOffice(OnlyOffice onlyOffice);

    void deleteOnlyOfficeById(Integer id);

    void deleteOnlyOffices(int[] ids);

    int updateOnlyOffice(OnlyOffice onlyOffice);
}
